//
//  CNStickerInputView.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/6/6.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CNBaseTool/CNCategoryHeader.h>

typedef NS_ENUM(NSUInteger, CNComposeToolbarButtonType) {
    CNComposeToolbarButtonTypePicture,//相册
    CNComposeToolbarButtonTypeEmotion,//表情
    CNComposeToolbarButtonTypeScore,//分数
};

@class CNComposeToolbar;
@protocol CNComposeToolbarDelegate <NSObject>

@optional

- (void)composeToolbarDidClickSendButton:(CNComposeToolbar *)composeToolbar;

- (void)composeToolbar:(CNComposeToolbar *)toolbar didClickButton:(CNComposeToolbarButtonType)buttonType;

@end

@interface CNComposeToolbar : UIView

@property (nonatomic, weak) id<CNComposeToolbarDelegate> delegate;

@property (nonatomic, strong) PPButton *emojiToggleButton;
@property (nonatomic, strong) PPButton *pictureButton;

@property (nonatomic, strong) PPButton *scoreButton;
@property (nonatomic, strong) PPStickerTextView *textView;

@property (nonatomic, strong) NSMutableAttributedString *scoreStr;
@property (nonatomic, strong) PPButton *selectedButton;
@end
